﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ServiceModel;
using System.Net.Security;

namespace RilattackLibrary
{
    [ServiceContract(Namespace = "RilAttack",
            CallbackContract = typeof(ICallBack),
            SessionMode = SessionMode.Allowed,
            ProtectionLevel = ProtectionLevel.None)]
    //[ServiceContract(CallbackContract = typeof(ICallBack))]
    public interface IServer
    {
        /*
        [OperationContract]
        void identifier();
        [OperationContract]
        void ajouterClient();*/

        [OperationContract]
        bool login(String pseudo);

        [OperationContract]
        Guid getMyUID();

        [OperationContract]
        void readyToPlay();
        
        [OperationContract]
        void OnMessageReceived(ServerMessage message);

        [OperationContract]
        void playerMove(int x, int y);
    }
}
